<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui"> 
    <h:outputStylesheet library="css" name="styles.css" />
    <f:loadBundle basename="edu.chl.dat076.datesite.resource.messages" var="msg"/>
    
    <h:head>
        <title>#{title}</title>
    </h:head>

    <h:body>
        <div id="header">
            <h:graphicImage id="datebook"
               alt="datebook"
               url="/resources/images/datebook.png">
            </h:graphicImage>
            <ui:insert name="headerBar"/>

        </div>
        
        <div id="contents">
            <div id="profileMessages">
                <p:messages showSummary="true" showDetail="false"/>
            </div>

            
            <h1>#{h1}</h1>
            
            <ui:insert name="pageContents"/>
            
        </div>
                
        <div id="footer">
            <p>#{msg.copyRight}</p>
        </div>
        
        <div id="hiddenTable">
            <h:form id="hiddenForm">
            <h:commandButton id="hiddenEditProfile" immediate="true" action="gotoProfileSettings" 
                value="" />
            <h:commandButton id="hiddenLogOut" immediate="true" action="#{sessionBackingBean.invalidateSession}" 
                value="" />
            </h:form>
        </div>
    </h:body>
</html>